package cn.lix.sc.rpc.oauth2.dao;

import cn.lix.sc.rpc.oauth2.entity.TbPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限表(TbPermission)表数据库访问层
 *
 * @author makejava
 * @since 2021-05-13 22:25:42
 */
public interface TbPermissionDao extends BaseMapper<TbPermission> {

    /**
     * 根据用户ID获取权限
     * @param userId
     * @return
     */
    List<TbPermission> getPermissionByUserId(@Param("userId") Long userId);

}
